package model;

import java.util.ArrayList;
import java.util.List;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;

@Entity
@DiscriminatorValue("U")
public class User extends Person {	
	private int active = 1;
	@ManyToMany
	private List<ProfileType> profileTypes = new ArrayList<ProfileType>();

	public User() {}

	public int getActive() {
		return active;
	}
	public void setActive(int active) {
		this.active = active;
	}

	public List<ProfileType> getProfileTypes() {
		return profileTypes;
	}

	public void setProfileTypes(List<ProfileType> profileTypes) {
		this.profileTypes = profileTypes;
	}
}
